package org.dromara.vehicle.modules.vehicle.domain.bo;

import com.baomidou.mybatisplus.annotation.TableLogic;
import io.github.linpeilie.annotations.AutoMapper;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.vehicle.modules.vehicle.domain.VehicleBasicInfo;

import java.util.Date;

/**
 * 车辆基本信息业务对象 vehicle_basic_info
 *
 * @author ckk
 * @date 2025-06-24
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = VehicleBasicInfo.class, reverseConvertGenerate = false)
public class VehicleBasicInfoBo extends BaseEntity {

    /**
     * 主键ID
     */
    @NotNull(message = "主键ID不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 车牌号
     */
    @NotBlank(message = "车牌号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String licensePlate;

    /**
     * 车辆图片
     */
    @NotBlank(message = "车辆图片不能为空", groups = { AddGroup.class, EditGroup.class })
    private String vehiclePic;

    /**
     * 车辆品牌
     */
    @NotBlank(message = "车辆品牌不能为空", groups = { AddGroup.class, EditGroup.class })
    private String brand;

    /**
     * 购置日期
     */
    @NotNull(message = "购置日期不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date purchaseDate;

    /**
     * 座位数
     */
    @NotNull(message = "座位数不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer seatNum;

    /**
     * 车型
     */
    @NotNull(message = "车型不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer model;

    /**
     * 车身颜色
     */
    @NotBlank(message = "车身颜色不能为空", groups = { AddGroup.class, EditGroup.class })
    private String color;

    /**
     * 使用性质
     */
    @NotBlank(message = "使用性质不能为空", groups = { AddGroup.class, EditGroup.class })
    private String usageNature;

    /**
     * 排量
     */
    @NotNull(message = "排量不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer displacement;

    /**
     * 备注信息
     */
    private String remarks;

    /**
     * 删除标志（0代表存在 1代表删除）
     */
    @TableLogic
    private String delFlag;

}
